﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using FirstFloor.ModernUI.Windows;
using FirstFloor.ModernUI.Windows.Controls;

namespace ModernWSPView.Pages
{
    /// <summary>
    /// Interaction logic for PageListFieldsOfContentTypes.xaml
    /// </summary>
    public partial class PageListFieldsOfContentTypes : UserControl, IContent
    {
        public PageListOfContentTypesModel Model { get; set; }

        public PageListFieldsOfContentTypes()
        {
            InitializeComponent();
            InitializeModel();
        }

        private void InitializeModel()
        {
            this.Model = new PageListOfContentTypesModel();
        }

        public void OnFragmentNavigation(FirstFloor.ModernUI.Windows.Navigation.FragmentNavigationEventArgs e)
        {
            this.Model.Load(e.Fragment);
            this.DataContext = this.Model;
        }

        public void OnNavigatedFrom(FirstFloor.ModernUI.Windows.Navigation.NavigationEventArgs e)
        {
            //throw new NotImplementedException();
        }

        public void OnNavigatedTo(FirstFloor.ModernUI.Windows.Navigation.NavigationEventArgs e)
        {
            //throw new NotImplementedException();
        }

        public void OnNavigatingFrom(FirstFloor.ModernUI.Windows.Navigation.NavigatingCancelEventArgs e)
        {
            //throw new NotImplementedException();
        }
    }
}
